package cn.doitedu.basic.jdk.lambda;

/**
 * Created by Administrator on 2021/9/30.
 */
public class LambdaServbiceDemo {

    public static void main(String[] args) {


        //()-> 相当于实现了LambdaService接口中createFactory方法的子类

        LambdaService lambdaService=() -> {

            System.out.println("test labmda");

            return new Object();

        };


        lambdaService.createFactory();


    }

}
